from pathlib import Path

# 创建单个文件夹
folder_name = "test_folder"
folder_path = Path(folder_name)
if not folder_path.exists():  # 检查文件夹是否存在
    folder_path.mkdir()
    print(f"文件夹 '{folder_name}' 创建成功！")
else:
    print(f"文件夹 '{folder_name}' 已存在。")